CGI_DIR := wwwroot/cgi
.PHONY:all
all:server $(CGI_DIR)/cal_cgi
server:main.cpp
	g++ -o $@ $^ -std=c++11
$(CGI_DIR)/cal_cgi: calculator_cgi.cpp | $(CGI_DIR)
	g++ -o $@ $^ -std=c++11
.PHONY:clean
clean:
	rm -f server $(CGI_DIR)/cal_cgi